package org.apache.commons.logging.impl;

import java.io.Serializable;

import org.apache.commons.logging.ILogLevel.LevelConstant;

public class LogMessage implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 119946410995870725L;

	private LevelConstant level;
	private String className; 
	private String method;
	private String msg;
	private Throwable exception;
	
	public LogMessage() {
	}
	
	public LogMessage(LevelConstant level, String className, String method, String msg, Throwable ex) {
		this.level = level;
		this.className = className;
		this.method = method;
		this.msg = msg;
		this.exception = exception;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Throwable getException() {
		return exception;
	}

	public void setException(Throwable exception) {
		this.exception = exception;
	}

	public LevelConstant getLevel() {
		return level;
	}

	public void setLevel(LevelConstant level) {
		this.level = level;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}